import request from '#/utils/requestAbort.js';

// 查询场站信息
export async function dimStationInfo() {
  return request('/generation-common/dimStation/selectCheck', {
    method: 'GET',
  });
}

// 查询场站信息
export async function placeInfo(params) {
  return request('/configuration/station-unit-model/query', {
    method: 'POST',
    data: params,
  });
}
// 修改场站信息
export async function placeInfoEdit(params) {
  return request('/configuration/station-unit-model/modify', {
    method: 'POST',
    data: params,
  });
}

// 删除场站信息
export async function placeInfoDel(params) {
  return request('/configuration/station-unit-model/delete', {
    method: 'POST',
    data: params,
  });
}

// 添加场站信息
export async function placeInfoAdd(params) {
  return request('/configuration/station-unit-model/add', {
    method: 'POST',
    data: params,
  });
}

// 查询机组信息
export async function machineInfo(params) {
  return request('/configuration/station-machine-information/query', {
    method: 'POST',
    data: params,
  });
}
// 修改机组信息
export async function machineInfoEdit(params) {
  return request('/configuration/station-machine-information/modify', {
    method: 'POST',
    data: params,
  });
}

// 删除机组信息
export async function machineInfoDel(params) {
  return request('/configuration/station-machine-information/delete', {
    method: 'POST',
    data: params,
  });
}

// 添加机组信息
export async function machineInfoAdd(params) {
  return request('/configuration/station-machine-information/add', {
    method: 'POST',
    data: params,
  });
}

// 省份-交易中心-场站（数据权限）
export async function queryMarketList(menuCode) {
  return request(`/power/dataPower/common/${menuCode}/t_station`, {
    method: 'GET',
  });
}
